package com.hxc.interest.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 政务反馈信息对象 t_reaction_back
 * 
 * @author hxc
 * @date 2021-08-18
 */
public class TReactionBack extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 反应内容 */
    @Excel(name = "反应内容")
    private String content;
    /** 反馈信息id */
    @Excel(name = "反馈信息id")
    private Long reactionId;
    /** 发布人 */
    @Excel(name = "发布人")
    private Long userId;
    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgUrl;
    /** 反馈状态(1：处理中，2：结束) */
    @Excel(name = "反馈状态(1：处理中，2：结束)")
    private String backStauts;
    /** 是否签到(0:已签到，1：未签到) */
    @Excel(name = "是否签到(0:未签到，1：已签到)")
    private Integer signIn;

    /** ----------------------------------表关联字段----------------------------- */
    /** 处理账户名称 */
    @TableField(exist = false)
    private String userName;
    /** 处理人名称 */
    @TableField(exist = false)
    private String nickName;
    /** 处理人名称 */
    @TableField(exist = false)
    private String avatar;
    /** 图片数组 */
    @TableField(exist = false)
    private String[] imgList;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }
    public String getContent() 
    {
        return content;
    }

    public void setReactionId(Long reactionId) 
    {
        this.reactionId = reactionId;
    }
    public Long getReactionId() 
    {
        return reactionId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }
    public Long getUserId() 
    {
        return userId;
    }

    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }
    public String getImgUrl() 
    {
        return imgUrl;
    }

    public void setBackStauts(String backStauts) 
    {
        this.backStauts = backStauts;
    }
    public String getBackStauts() 
    {
        return backStauts;
    }

    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getSignIn() {
        return signIn;
    }
    public void setSignIn(Integer signIn) { this.signIn = signIn; }

    public String[] getImgList() { return imgList; }
    public void setImgList(String[] imgList) { this.imgList = imgList; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("reactionId", getReactionId())
            .append("userId", getUserId())
            .append("imgUrl", getImgUrl())
            .append("backStauts", getBackStauts())
            .append("createTime", getCreateTime())
            .append("nickName", getNickName())
            .append("userName", getUserName())
            .append("avatar", getAvatar())
            .append("signIn", getSignIn())
            .append("imgList", getImgList())
            .toString();
    }
}
